[MINOR][SQL] Add missing functions for some options in SQLConf and use them where applicable#14678
[MINOR][SQL] Add missing functions for some options in SQLConf and use them where applicable#14678HyukjinKwon wants to merge 4 commits intoapache:masterfrom
Conversation
|
Test build #63898 has finished for PR 14678 at commit
|
| .intConf | ||
| .createWithDefault(4000) | ||
|
|
||
| val PARTITION_DISCOVERY_ENABLED = SQLConfigBuilder("spark.sql.sources.partitionDiscovery.enabled") |
There was a problem hiding this comment.
It seems we always enable this and this option is not referenced anywhere(?). Is this intendedly not used?
There was a problem hiding this comment.
It seems the usage was removed while refactoring.
There was a problem hiding this comment.
Could you do me a favor to check which PR removed the usage?
There was a problem hiding this comment.
It sounds like we still keep another SQLConf PARALLEL_PARTITION_DISCOVERY_THRESHOLD. However, the description of PARALLEL_PARTITION_DISCOVERY_THRESHOLD is not right after the refactoring. Could you update the descriptions too?
There was a problem hiding this comment.
PR #11509 removes the usage of PARTITION_DISCOVERY_ENABLED. I think it is safe to remove this conf now.
|
cc @rxin, Could you check if this make sense please? |
|
Looks good, but I didn't look super carefully. @gatorsmile do you have time to take a more careful look at this? |
|
Test build #63899 has finished for PR 14678 at commit
|
|
Sure, will review it today. Thanks! |
|
Just searched the code and found more. Any reason why we do not change these? |
|
nvm, I got the answer. We are unable to change them. Thanks! |
|
I checked the conf changes and the data types. It looks good to me. Only leave a minor comment on the conf description of one related parameter |
|
@gatorsmile Thanks for a very close look. I should've check the description of |
|
LGTM pending tests |
|
Test build #63959 has finished for PR 14678 at commit
|
|
(@rxin cc you in case you just missed this) |
|
ping @rxin |
|
@cloud-fan Do you mind if I ask to take a look please? |
|
retest this please |
|
LGTM |
|
Test build #65263 has finished for PR 14678 at commit
|
|
thanks, merging to master! |
|
Thanks but also FYI this is not "minor". We should have a JIRA ticket for changes like this in the future. |
…e them where applicable ## What changes were proposed in this pull request? I first thought they are missing because they are kind of hidden options but it seems they are just missing. For example, `spark.sql.parquet.mergeSchema` is documented in [sql-programming-guide.md](https://github.com/apache/spark/blob/master/docs/sql-programming-guide.md) but this function is missing whereas many options such as `spark.sql.join.preferSortMergeJoin` are not documented but have its own function individually. So, this PR suggests making them consistent by adding the missing functions for some options in `SQLConf` and use them where applicable, in order to make them more readable. ## How was this patch tested? Existing tests should cover this. Author: hyukjinkwon <gurwls223@gmail.com> Closes apache#14678 from HyukjinKwon/sqlconf-cleanup.
What changes were proposed in this pull request?
I first thought they are missing because they are kind of hidden options but it seems they are just missing.
For example,
spark.sql.parquet.mergeSchemais documented in sql-programming-guide.md but this function is missing whereas many options such asspark.sql.join.preferSortMergeJoinare not documented but have its own function individually.So, this PR suggests making them consistent by adding the missing functions for some options in
SQLConfand use them where applicable, in order to make them more readable.How was this patch tested?
Existing tests should cover this.